trace: improve check_tbuf_size()
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 2 Jul 2010 17:53:10 +0000 (18:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 2 Jul 2010 17:53:10 +0000 (18:53 +0100)
commit43b0124af6b67ca65a1b4e82cf6b22b6d56119f8
tree928737ddd97474f5a5b879bf2ceed5aba33b46e5
parent79fdc7a419bd9f4e46b0d24549e6a6ee894d19d9
trace: improve check_tbuf_size()

It didn't consider the case of the incoming size not allowing for the
2*data_size range for t_buf->{prod,cons}

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/trace.c